<?php

class UsersTopicsGroupsController extends AppController {

    public $uses = array('User', 'TopicGroup', 'UserTopicGroup');

    public function TopicsGroupsofUser($idUser){
           $data = $this->UserTopicGroup->find('list', array(
                'conditions' => array(
                    'User.id' => $idUser
                )
            ));      
            return $data;
    }

}
?>
